package com.doraro.platform.module.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.doraro.platform.module.user.model.dto.RoleDetail;
import com.doraro.platform.module.user.model.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author doraro
 * @since 2019-04-21
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    List<SysRole> getRoleByUserId(@Param("userId") String userId);

    List<String> getMenuResoucePermsByRoleIds(@Param("ids") List<Integer> ids);

    List<RoleDetail> listWithMenuIds();
}
